package com.neusoft.SPNursingHome.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

// 指定属性顺序
@JsonPropertyOrder({"foodName", "foodType", "calories"})
@TableName("food")
public class Food {
    @TableId("food_id")
    private Integer foodId;

    @TableField("food_name")
    private String foodName;

    @TableField("food_type")
    private String foodType;

    private Integer calories;

    public Integer getCalories() {
        return calories;
    }

    public void setCalories(Integer calories) {
        this.calories = calories;
    }

    public Food() {}

    public Food(Integer foodId, String foodName, String foodType) {
        this.foodId = foodId;
        this.foodName = foodName;
        this.foodType = foodType;
    }

    public Integer getFoodId() { return foodId; }
    public void setFoodId(Integer foodId) { this.foodId = foodId; }

    public String getFoodName() { return foodName; }
    public void setFoodName(String foodName) { this.foodName = foodName; }

    public String getFoodType() { return foodType; }
    public void setFoodType(String foodType) { this.foodType = foodType; }
}
